#include "comm.hpp"

int main()
{
    int fd = open(FIFO_FILE, O_WRONLY);
    if(fd < 0)
    {
        perror("open file error");
        exit(1);
    }
    while (true)
    {
        std::cout << "please enter# ";
        std::string message;
        std::cin >> message;
        int n = write(fd, message.c_str(), message.size());
        if(n > 0)
        {

        }
    }
    close(fd);
    return 0;
}